package com.lp.company;

import com.lp.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;

/**
 * @author lipengak
 * @Description
 * @Date 2020/1/31 0:08
 * @Copyright 2019-2020
 */
//配置启动类
@SpringBootApplication(scanBasePackages = "com.lp.company")
//配置jpa扫描实体类
@EntityScan(value = "com.lp.domain.company")
public class CompanyApplication {

    public static void main(String[] args) {
        SpringApplication.run(CompanyApplication.class, args);
    }

    @Bean
    public IdWorker idWorkker() {
        return new IdWorker(1, 1);
    }


}
